<{foreach item=list key=num from=$sword}>
<a  <{if $num==0}> class='first' <{/if}> target="_blank" href="<{$config.weburl}>/?m=product&s=list&key=<{$list.keyword|urlencode}>"><{$list.keyword}></a>
<{/foreach}>